package com.smartfactory.sail.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smartfactory.sail.dto.GetOrderItemByCustId;
import com.smartfactory.sail.entity.OrderItem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smartfactory.sail.vo.PageParam;
import com.smartfactory.sail.vo.item.indexWpResp;
import com.smartfactory.sail.vo.order.IndexOrderItemStatResp;
import com.smartfactory.sail.vo.order.ListOrderItemRsp;
import com.smartfactory.sail.vo.order.PackingDetailResp;
import com.smartfactory.sail.vo.order.PackingListResp;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单产品表 服务类
 * </p>
 *
 * @author 王巨壁
 * @since 2019-07-24
 */
public interface IOrderItemService extends IService<OrderItem> {

    IPage<ListOrderItemRsp> getOrderItemPage(PageParam pageParam, Map<String, Object> queryParam);

    OrderItem findByOrderIdAndItemId(long itemId, long orderId);

    Boolean updateStatus(OrderItem orderItem);

    List<GetOrderItemByCustId> getOrderItemByCustId(Long custId);

    List<PackingDetailResp> packingDetail(long custId);

    IndexOrderItemStatResp indexStat(long deptId);

    List<PackingDetailResp> packing(long custId);

    List<indexWpResp> indexWp(long deptId);

    PackingListResp findOrderItem(long orderId, long itemId);
}
